package com.moxigua.iotbox.func.event;

import org.eclipse.paho.client.mqttv3.MqttMessage;

/**
 * Created by Junerver on 2017/6/2.
 * Feature:
 * Updated:
 */

public class BaseEvent  {
    public String topic;
    public MqttMessage message;

    public BaseEvent() {
    }

    public BaseEvent(String topic, MqttMessage message) {
        this.topic = topic;
        this.message = message;
    }

    @Override
    public String toString() {
        return "BaseEvent{" +
                "topic='" + topic + '\'' +
                ", message=" + message +
                '}';
    }
}
